{
  // 根据id获取dom，指定获取的dom是个link标签
  // let aLink = document.querySelector('#hd') as HTMLLinkElement
  // console.log(aLink.href);

  class Test {
    el: HTMLDivElement;
    constructor(el: HTMLDivElement) {
      this.el = el;
    }

    html() {
      return this.el.innerHTML;
    }
  }

  const el = document.querySelector(".test") as HTMLDivElement;
  const obj = new Test(el);
  console.log(obj.el.innerHTML);
}
